package allen.ui.log;

import java.text.DateFormat;

import javax.swing.table.DefaultTableCellRenderer;

/**
 * Long date renderer for JTable.
 * */
class LongDateRenderer extends DefaultTableCellRenderer {
	private static final long serialVersionUID = 1L;
	private DateFormat formatter = DateFormat.getDateTimeInstance();

	public LongDateRenderer() {
		super();
	}

	public void setValue(Object value) {
		setText((value == null) ? "" : formatter.format(value));
	}
}
